/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaces;

/**
 *
 * @author William Alves
 */
public class principal extends javax.swing.JFrame {

    /**
     * Creates new form principal
     */
    public principal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jdpprincipal = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        cadcliente = new javax.swing.JMenuItem();
        consultcliente = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jCadastroReserva = new javax.swing.JMenuItem();
        jConsultarReserva = new javax.swing.JMenuItem();
        jCancelReserva = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jCadastroQuarto = new javax.swing.JMenuItem();
        jConsultaQuarto = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Hotel Beach Center");
        setMaximumSize(new java.awt.Dimension(70, 55));
        setMinimumSize(new java.awt.Dimension(70, 55));
        getContentPane().setLayout(null);

        javax.swing.GroupLayout jdpprincipalLayout = new javax.swing.GroupLayout(jdpprincipal);
        jdpprincipal.setLayout(jdpprincipalLayout);
        jdpprincipalLayout.setHorizontalGroup(
            jdpprincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1090, Short.MAX_VALUE)
        );
        jdpprincipalLayout.setVerticalGroup(
            jdpprincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 620, Short.MAX_VALUE)
        );

        getContentPane().add(jdpprincipal);
        jdpprincipal.setBounds(0, 0, 1090, 620);

        jMenu2.setText("Cliente");

        cadcliente.setText("Cadastrar Cliente");
        cadcliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadclienteActionPerformed(evt);
            }
        });
        jMenu2.add(cadcliente);

        consultcliente.setText("Consultar Cliente");
        consultcliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultclienteActionPerformed(evt);
            }
        });
        jMenu2.add(consultcliente);

        jMenuBar1.add(jMenu2);

        jMenu1.setText("Reservas");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        jCadastroReserva.setText("Cadastrar Reservas");
        jCadastroReserva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCadastroReservaActionPerformed(evt);
            }
        });
        jMenu1.add(jCadastroReserva);

        jConsultarReserva.setText("Consultar Reservas");
        jConsultarReserva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jConsultarReservaActionPerformed(evt);
            }
        });
        jMenu1.add(jConsultarReserva);

        jCancelReserva.setText("Cancelar Reserva");
        jCancelReserva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCancelReservaActionPerformed(evt);
            }
        });
        jMenu1.add(jCancelReserva);

        jMenuBar1.add(jMenu1);

        jMenu3.setText("Quartos");

        jCadastroQuarto.setText("Cadastrar Quarto");
        jCadastroQuarto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCadastroQuartoActionPerformed(evt);
            }
        });
        jMenu3.add(jCadastroQuarto);

        jConsultaQuarto.setText("Consultar Quarto");
        jConsultaQuarto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jConsultaQuartoActionPerformed(evt);
            }
        });
        jMenu3.add(jConsultaQuarto);

        jMenuBar1.add(jMenu3);

        jMenu4.setText("Restaurante");
        jMenuBar1.add(jMenu4);

        jMenu5.setText("Sair");
        jMenu5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu5ActionPerformed(evt);
            }
        });
        jMenuBar1.add(jMenu5);

        setJMenuBar(jMenuBar1);

        setSize(new java.awt.Dimension(1101, 680));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void consultclienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultclienteActionPerformed
        // TODO add your handling code here:
        TelaConsultaCliente obj2 = new TelaConsultaCliente();
        jdpprincipal.add(obj2);
        obj2.setVisible(true);
        
    }//GEN-LAST:event_consultclienteActionPerformed

    private void cadclienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadclienteActionPerformed
        // TODO add your handling code here:
        TelaCadastroCliente obj = new TelaCadastroCliente();
        jdpprincipal.add(obj);
        obj.setVisible(true);
    }//GEN-LAST:event_cadclienteActionPerformed

    private void jCadastroQuartoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCadastroQuartoActionPerformed
        
        TelaCadastroQuarto obj = new TelaCadastroQuarto();
        jdpprincipal.add(obj);
        obj.setVisible(true);
    }//GEN-LAST:event_jCadastroQuartoActionPerformed

    private void jCadastroReservaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCadastroReservaActionPerformed
        
        TelaCadastroReserva obj = new TelaCadastroReserva();
        jdpprincipal.add(obj);
        obj.setVisible(true);
      
    }//GEN-LAST:event_jCadastroReservaActionPerformed

    private void jConsultarReservaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jConsultarReservaActionPerformed
        // TODO add your handling code here:
        TelaConsultaReserva obj = new TelaConsultaReserva();
        jdpprincipal.add(obj);
        obj.setVisible(true);
    }//GEN-LAST:event_jConsultarReservaActionPerformed

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        
       
    }//GEN-LAST:event_jMenu1ActionPerformed

    private void jCancelReservaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCancelReservaActionPerformed
        
         TelaCancelaReserva obj = new TelaCancelaReserva();
        jdpprincipal.add(obj);
        obj.setVisible(true);
    }//GEN-LAST:event_jCancelReservaActionPerformed

    private void jMenu5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu5ActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jMenu5ActionPerformed

    private void jConsultaQuartoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jConsultaQuartoActionPerformed
        
        TelaConsultaQuarto obj = new TelaConsultaQuarto();
        jdpprincipal.add(obj);
        obj.setVisible(true);
    }//GEN-LAST:event_jConsultaQuartoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windons".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new principal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem cadcliente;
    private javax.swing.JMenuItem consultcliente;
    private javax.swing.JMenuItem jCadastroQuarto;
    private javax.swing.JMenuItem jCadastroReserva;
    private javax.swing.JMenuItem jCancelReserva;
    private javax.swing.JMenuItem jConsultaQuarto;
    private javax.swing.JMenuItem jConsultarReserva;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JDesktopPane jdpprincipal;
    // End of variables declaration//GEN-END:variables
}
